<html xmlns="http://www.w3c.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui">
<h:head>

</h:head>
<h:body>
	<h:form id="form_associativity_data">

		<div>
			<div class="ui-form-row-2col clearfix">
				<div class="ui-form-col">
					<div class="clearfix text-align-left">
						<p:outputLabel
							value="#{i18n['lbl.owner.associativity.part_of_organization']}" />
					</div>
					<div class="clearfix text-align-left">
						<p:outputLabel
							value="#{aSession.selectedRuatRegister.associationsMembershipDesc}" styleClass="ui-outputfield" />
					</div>
				</div>

				<p:panel styleClass="ui-form-col" rendered="#{aSession.selectedRuatRegister.associationsMembership =='2'}">
					<div class="clearfix text-align-left">
						<p:outputLabel
							value="#{i18n['lbl.owner.associativity.not_to_belong_associativity']}" />
					</div>
					<div class="clearfix text-align-left">
						<p:outputLabel
							value="#{aSession.selectedRuatRegister.reasonNotToBelongDesc}"  styleClass="ui-outputfield"/>
					</div>
				</p:panel>
			</div>
		</div>

		<p:panel styleClass="clearfix common-panel" rendered="#{aSession.selectedRuatRegister.associationsMembership =='1'}">
			<p:dataTable var="register"
				value="#{aSession.associativity.associativityRegisters}"
				emptyMessage="#{i18n['cmpnt.no.data']}"
				id="tableassociativityRegisters">
				<p:column headerText="#{i18n['lbl.owner.associativity.class']}">
					<p:outputLabel value="#{register.associationClassDesc}" styleClass="ui-outputfield" />
				</p:column>

				<p:column headerText="#{i18n['lbl.owner.associativity.org_name']}">
					<p:outputLabel value="#{register.organizationName}" styleClass="ui-outputfield" />
				</p:column>

				<p:column headerText="#{i18n['lbl.owner.associativity.benefit']}">
					<p:outputLabel value="#{register.benefitDesc}" styleClass="ui-outputfield" />

				</p:column>

				<p:column
					headerText="#{i18n['lbl.owner.associativity.meeting_frequency']}">
					<p:outputLabel value="#{register.meetingFrequencyDesc}" styleClass="ui-outputfield" />

				</p:column>
				<p:column
					headerText="#{i18n['lbl.owner.associativity.work_Organization']}">
					<p:outputLabel value="#{register.workInOrganizationDesc}" styleClass="ui-outputfield" />
				</p:column>
			</p:dataTable>
		</p:panel>

		<div>
			<div class="ui-form-row-2col clearfix">
				<div class="ui-form-col">
					<div class="clearfix text-align-left">
						<p:outputLabel
							value="#{i18n['lbl.owner.associativity.entities_associativity']}" />
					</div>
					<div class="clearfix text-align-left">
						<p:outputLabel
							value="#{aSession.selectedRuatRegister.entitiesProvidingSupportDesc}" styleClass="ui-outputfield" />
					</div>
				</div>
				<p:panel styleClass="ui-form-col" rendered="#{aSession.selectedRuatRegister.entitiesProvidingSupport == '1'}">
					<div class="clearfix text-align-left">
						<p:outputLabel
							value="#{i18n['lbl.owner.associativity.name_entity']}" />
					</div>

					<div class="clearfix text-align-left">
						<p:outputLabel 
							value="#{aSession.selectedRuatRegister.entitiesProvidingSupportName}"
							id="providingSupport" styleClass="ui-outputfield" />
					</div>
					<!-- 						</h:panelGrid> -->
					<!-- 					</p:panel> -->
				</p:panel>

			</div>
		</div>

	</h:form>
</h:body>

</html>